<template>
  <el-dialog
    append-to-body
    :title="info"
    :visible.sync="dialogVisible"
    :close-on-click-modal="false"
    align="left"
    v-loading="currLoading"
    element-loading-text="拼命加载中"
    element-loading-spinner="el-icon-loading"
    element-loading-background="rgba(0, 0, 0, 0.8)"
    top="20px"
    width="1250px">
    <cart-box v-if="dialogVisible"/>
  </el-dialog>
</template>

<script>
import CartBox from '../Common/CartBox'
export default {
  name: 'CartDialog',
  components: {CartBox},
  props:{
    successFunction:Function
  },
  data: function () {
    return {
      info:'购物车',
      dialogVisible: false,
      currLoading: false,
    }
  },
  mounted () {
  },
  methods: {
    open: function () {
      this.dialogVisible = true
      this.$forceUpdate()
    }
  }
}
</script>

<style scoped>

</style>
